package com.eshop.modules.quartz.service;

import java.io.IOException;
import javax.servlet.http.HttpServletResponse;
import com.eshop.modules.quartz.service.dto.QuartzJobDto;
import java.util.List;
import java.util.Map;
import org.springframework.data.domain.Pageable;
import com.eshop.modules.quartz.service.dto.QuartzJobQueryCriteria;
import com.eshop.modules.quartz.domain.QuartzJob;
import com.eshop.common.service.BaseService;

public interface QuartzJobService extends BaseService<QuartzJob>
{
    Map<String, Object> queryAll(final QuartzJobQueryCriteria criteria, final Pageable pageable);
    
    List<QuartzJob> queryAll(final QuartzJobQueryCriteria criteria);
    
    void download(final List<QuartzJobDto> all, final HttpServletResponse response) throws IOException;
    
    void updateIsPause(final QuartzJob quartzJob);
    
    void execution(final QuartzJob quartzJob);
    
    List<QuartzJob> findByIsPauseIsFalse();
    
    void removeByIds(final List<Integer> idList);
}
